import java.util.Scanner;

public class demon2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);

        String str=in.nextLine();
        int a=in.nextInt();
        System.out.println(a);
        System.out.println(str);

    }
    //while循环,for循环,do  while循环(不咋用)
    //if  和c语言一样   break   continue
}
